﻿using SqlSugar;
using Zhp.SqlSugar.Entity;

namespace Zhp.Entity.Sys
{
    /// <summary>
    /// 用户角色表
    /// </summary>
    [SugarTable("Sys_Role")]
    public class SysRole : BaseEntity<SysRole, long>
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        [SugarColumn(Length = 255, IsNullable = false, ColumnDescription = "角色名称")]
        public string RoleName { get; set; }

        /// <summary>
        /// 是否内置角色
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "内置管理员,无视系统权限")]
        public bool IsAdmin { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "是否启用")]
        public bool IsEnabled { get; set; }
    }
}
